
from speedtest import Speedtest;


def Testing_Speed(net):
	download = net.download();
	upload = net.upload();
	print(f'下载速度:{download / (1024 * 1024)} Mbps')
	print(f'上传速度:{upload / (1024 * 1024)} Mbps')


if __name__ == '__main__':
	net = Speedtest();
	print("开始测试网速...")
	Testing_Speed(net)